<?xml version="1.0" encoding="ISO_8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<h:head>
	</h:head>
	
	<h:body>	
     
				 
				 
	<p:panel header="#{msg.componente_headerEdit}">	
		<h:form name="form1">		
			<p:panelGrid columns="2">
	
				<p:outputLabel for="nome" value="#{msg.componente_nome}"/>	 
	 			<p:inputText id="nome" value="#{componentesMB.componente.nome}"/>	 	
	
				<p:outputLabel for="descricao" value="#{msg.componente_descricao}"/>	 
	 			<p:inputText id="descricao" value="#{componentesMB.componente.descricao}"/>	 	
	
				<p:outputLabel for="quantidade" value="#{msg.componente_quantidade}"/>	 
	 			<p:inputText id="quantidade" value="#{componentesMB.componente.quantidade}"/>	
	 
		 			<p:commandButton value="#{msg.button_edit}" id="botao_edit_cad"  ajax="false" action="#{componentesMB.editComponente()}" >
		 				<f:setPropertyActionListener target="#{urlMB.url}" value="componentes.xhtml" />
		 			</p:commandButton>
		  			<p:commandButton value="#{msg.button_cancel}" id="botao_cancel_cad"  ajax="false" >
		  				<f:setPropertyActionListener target="#{urlMB.url}" value="componentes.xhtml" />
		  			</p:commandButton>
				
			</p:panelGrid>	
			
			<h:inputHidden id="idComponente"  value="#{componentesMB.componente.id}" />	
		</h:form>	
	</p:panel>
								
	
		
	</h:body>
</html>		
